package cn.hcbycloud.auth.mapper;


import cn.hcbycloud.auth.bo.RoleBO;
import cn.hcbycloud.auth.model.RoleRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色关系表
 * @author gaoheng
 * @date 2022-01-22 00:47:38
 */
public interface RoleRelationMapper extends BaseMapper<RoleRelation> {

    /**
     * 根据主体标识获取角色对象列表
     * @param mainId
     * @param tenantId
     * @return
     */
    List<RoleBO> selectRolesByMainId(@Param("mainId") String mainId, @Param("tenantId") String tenantId);

}
